package com.project.class8_24.observer;

/**
 * 商品类
 */
public class Product extends Observer{
    private double price;

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
        // 通知观察者主题的变化
        this.notifyWatch(price);
    }
}
